package a_exception.f_constom;
/*
    使用自定义异常类
 */
public class DemoTest {
    public static void main(String[] args) {
        /*try {
            throw new CustomException("自定义异常");
        } catch (CustomException e) {
            System.out.println(e.getMessage());
        }*/

        //throw new CustomException("自定义异常");
    }
}
